Skip to main content

All Questions

Tagged with
13votes
1answer
1kviews

Simple NAPI wrapper around self written C++ msgpack, horrible performance

I have written a relatively small msgpack implementation in C++, with performance that is not too bad, so I decided to write a NAPI wrapper around it, but the performance is just horrible. I am ...
t348575's user avatar
2votes
1answer
609views

Header only HTTP client library that is a wrapper around CURL

For learning purposes, I wanted to create a header-only C++ wrapper library around HTTP CURL functionality. At the moment the library only implements GET and POST, but I will add other HTTP methods ...
sptrks's user avatar
2votes
1answer
191views

Subset Component Task

I've solved a problem Subset Component Problem You are given an array with n 64-bit integers: d[0],d[1],….,d[n-1]. ...
Anatolii's user avatar
9votes
3answers
1kviews

Count the frequency of integers in an array

I recently reviewed a question here on Code Review. The problem statement is Write a program that prompts the user to input ten values between 80 and 85 and stores them in an array. Your program ...
pacmaninbw's user avatar
  • 25.7k
13votes
2answers
2kviews

C++ data type to store and manipulate individual bits

The use cases I’m facing require me to have a C++ data type that can store and manipulate the state of somewhere between 400 and 500 bits. In addition it is necessary to be able to store that state ...
ackh's user avatar
  • 245
0votes
1answer
1kviews

SFINAE with several condition [Refactoring] [closed]

How can I write this function shorter? ...
21koizyd's user avatar
2votes
1answer
2kviews

Sequence generator with custom step size, start value and operation

I have created a little generator class to generate number sequences.The intended purpose of this class is to be used with generate_n to populate containers. I would like to know whether there is ...
Vincent's user avatar
3votes
1answer
2kviews

Custom GUI Slider class

I want to improve my slider class as much as possible. Is this acceptable code for a slider? I've tried to comment as much as I can. If you want to find out more about the ...
user5876769's user avatar
9votes
4answers
2kviews

Filter function implementations using copy_if algorithm vs. for loop

I have the following method of some class, which also defines the method isAllowed: ...
ricab's user avatar
1vote
1answer
136views

Constructing a UI to ask a list of questions

This code fragment from 2009: ...
CW Holeman II's user avatar

close